package com.gm.wholesale.module.user.bean;

import com.google.gson.annotations.SerializedName;

import java.io.Serializable;
import java.util.List;


public class UserDetailBean implements Serializable {

    @SerializedName("user_name")
    private String userName;
    @SerializedName("user_id")
    private long userId;
    @SerializedName("user_type")
    private int userType;
    @SerializedName("tenant")
    private TenantDTO tenant;
    @SerializedName("modules")
    private List<String> modules;
    @SerializedName("aud")
    private List<String> aud;
    @SerializedName("exp")
    private long exp;
    @SerializedName("iat")
    private long iat;

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public int getUserType() {
        return userType;
    }

    public void setUserType(int userType) {
        this.userType = userType;
    }

    public TenantDTO getTenant() {
        return tenant;
    }

    public void setTenant(TenantDTO tenant) {
        this.tenant = tenant;
    }

    public List<String> getModules() {
        return modules;
    }

    public void setModules(List<String> modules) {
        this.modules = modules;
    }

    public List<String> getAud() {
        return aud;
    }

    public void setAud(List<String> aud) {
        this.aud = aud;
    }

    public long getExp() {
        return exp;
    }

    public void setExp(long exp) {
        this.exp = exp;
    }

    public long getIat() {
        return iat;
    }

    public void setIat(long iat) {
        this.iat = iat;
    }

    public static class TenantDTO {
        @SerializedName("tenant_id")
        private long tenantId;
        @SerializedName("expire_at")
        private long expireAt;

        public long getTenantId() {
            return tenantId;
        }

        public void setTenantId(long tenantId) {
            this.tenantId = tenantId;
        }

        public long getExpireAt() {
            return expireAt;
        }

        public void setExpireAt(long expireAt) {
            this.expireAt = expireAt;
        }
    }
}
